# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=cups-pk-helper
pkgver=0.2.6
pkgrel=0
pkgdesc="PolicyKit helper to configure cups with fine-grained privileges"
url="https://www.freedesktop.org/wiki/Software/cups-pk-helper/"
arch="all"
license="GPL-2.0-or-later"
makedepends="glib-dev polkit-dev cups-dev intltool"
subpackages="$pkgname-lang"
source="http://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="33f1b6f58f4772148bd1cfb8163dacaffd3cc62f2d03731710c98b765ebb8b87541cb9cf43e886880134c32db91a43c7142b1556a0abdf1449068031b0d5fbd3  cups-pk-helper-0.2.6.tar.xz"
